<div style="margin: 15px;">
	<form class="layui-form">
		<input type="hidden" name="id" value="{$data.id}">
		<div class="layui-form-item">
			<label class="layui-form-label">名称</label>
			<div class="layui-input-block">
				<input type="text" name="title" placeholder="请输入" autocomplete="off" class="layui-input" value="{$data.title}">
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label">上级</label>
			<div class="layui-input-block">
				<select name="pid" lay-verify="required">
					<option value="0" {eq name="data.pid" value="0"}>顶级分类</option>
					{volist name="cateData" id="vo"}
					<option value="{$vo.id}" {eq name="data.pid" value="$vo.id"}selected{/eq}>|-- {$vo.title}</option>
					{notempty name="vo.son"}
					{volist name="vo.son" id="vo"}
					<option value="{$vo.id}" disabled>|---- {$vo.title}</option>
					{/volist}
					{/notempty}
					{/volist}
				</select>
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label">分类开关</label>
			<div class="layui-input-block">
				<input type="checkbox" name="status" lay-skin="switch" lay-text="1|0" {$data.status? 'checked':''}>
			</div>
		</div>

		<div class="layui-form-item layui-form-text">
			<label class="layui-form-label">描述</label>
			<div class="layui-input-block">
				<textarea name="description" placeholder="请输入内容" class="layui-textarea">{$data.description}</textarea>
			</div>
		</div>

		<div class="layui-form-item layui-form-text">
			<label class="layui-form-label">单页内容</label>
			<div class="layui-input-block">
				<textarea name="content" placeholder="请输入内容" class="layui-textarea">{$data.content}</textarea>
			</div>
		</div>

<!-- 
		<div class="layui-form-item">
			<label class="layui-form-label">复选框</label>
			<div class="layui-input-block">
				<input type="checkbox" name="like[write]" title="写作">
				<input type="checkbox" name="like[read]" title="阅读" checked>
				<input type="checkbox" name="like[dai]" title="发呆">
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label">单选框</label>
			<div class="layui-input-block">
				<input type="radio" name="sex" value="男" title="男">
				<input type="radio" name="sex" value="女" title="女" checked>
			</div>
		</div>
		<div class="layui-form-item layui-form-text">
			<label class="layui-form-label">文本域</label>
			<div class="layui-input-block">
				<textarea name="desc" placeholder="请输入内容" class="layui-textarea"></textarea>
			</div>
		</div> -->
		<button lay-filter="edit" lay-submit style="display: none;"></button>
	</form>
</div>